package com.primal.job;

import com.primal.bean.Person;
import com.primal.quartz.support.JobSupport;
import org.quartz.JobExecutionContext;
import org.quartz.Scheduler;
import org.springframework.beans.factory.annotation.Autowired;

public class TestJob extends JobSupport {
    @Autowired
    Person person;

    @Autowired
    Scheduler scheduler;

    @Override
    public void doExecute(JobExecutionContext jobExecutionContext) {

        System.out.println("Hello world..."+person);

        System.out.println("TestJob:"+scheduler);

        System.out.println("TestJob:"+Thread.currentThread().getName());
    }
}
